FROM openjdk:8

EXPOSE 3306
EXPOSE 6379
EXPOSE 8077

#VOLUME /tmp
ARG JAR_FILE=target/jeewx-boot-start.jar
#COPY ${JAR_FILE} app.jar
ADD ${JAR_FILE} /app.jar
RUN bash -c 'touch /app.jar'
ENTRYPOINT ["java","-jar","-server","-Xms1024m","-Xmx1024m","-Dspring.profiles.active=prod","-Djava.security.egd=file:/dev/./urandom","-Duser.timezone=GMT+8","/app.jar"]
